<!DOCTYPE html>
<html lang="en">

<head>
    <title>My BCIT Project</title>
    <meta name="comp2800 template" content="My 2800 App">

    <!------------------------>
    <!-- Required meta tags -->
    <!------------------------>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <!------------------------------------------>
    <!-- Bootstrap Library CSS JS CDN go here -->
    <!------------------------------------------>
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet"
        integrity="sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN" crossorigin="anonymous">
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"
        integrity="sha384-C6RzsynM9kWDrMNeT87bh95OGNyZPhcTNXj1NW7RuBCsyN/o0jlpcV8Qyq46cDfL" crossorigin="anonymous">
        </script>

    <!-------------------------------------------------------->
    <!-- Firebase 8 Library related CSS, JS, JQuery go here -->
    <!-------------------------------------------------------->
    <script src="//cdn.bootcss.com/jquery/3.1.1/jquery.min.js"></script>
    <!-------------------------------------------->
    <!-- Other libraries and styles of your own -->
    <!-------------------------------------------->
    <!-- <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet"> -->
    <!-- <link rel="stylesheet" href="./styles/style.css"> -->
    <style>
           body{
  background-image:url(./images/mbg4.jpg);
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: cover;

}
        /* Customize container margin */
        .container {
            margin-top: 5%;
            padding: 20px;
            border: 2px solid #ccc;
            border-radius: 10px;
        }

        /* Center align text */
        h1 {
            text-align: center;
        }

        /* Add spacing between elements */
        .py-4 {
            padding-bottom: 4rem !important;
        }

        /* Style history cards */
        .card {
            margin-bottom: 20px;
            border: 1px solid #ddd;
            border-radius: 10px;
        }

        .card-title {
            font-weight: bold;
        }

        .card-image {
            border-radius: 50%;
            border: 2px solid #ccc;
        }

        .date {
            font-style: italic;
        }
        @font-face {
  font-family: 'Font1';
  src: url('./fonts/Conther-2.ttf') format('TrueType'),
    /* 支持现代浏览器 */

    /* 可以添加更多字体格式，以提高兼容性 */
}

@font-face {
  font-family: 'Font2';
  src: url('./fonts/SankeiCutePopanime-2.ttf') format('TrueType'),
    /* 支持现代浏览器 */

    /* 可以添加更多字体格式，以提高兼容性 */
}

@font-face {
  font-family: 'Font3';
  src: url('./fonts/Crystal-Regular-2.ttf') format('TrueType'),
    /* 支持现代浏览器 */

    /* 可以添加更多字体格式，以提高兼容性 */
}
    </style>
    <!-------------------------------------------->
    <!-- Other libraries and styles of your own -->
    <!-------------------------------------------->
    <!-- <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet"> -->
    <link rel="stylesheet" href="./styles/style.css">

</head>

<body>
    <!-- our own navbar goes here -->
    <nav id="navbarPlaceholder"></nav>
    <div class="container">
        <h1>History Page</h1>
        <h1>For <span id="name-goes-here">my friend</span></h1>

        <div id="history-goes-here" class="row row-cols-auto">
        </div>

    </div>

    <!-- our own footer goes here-->


    <!-- This is where I put some templates for dynamic cards -->
    <template id="simple-history-card" class="card-body">
        <p class="info"> some text </p>
    </template>

    <!-- Has a "card-image", "card-title", "card-description", "date", "count"-->
    <template id="postCardTemplate">
        <div class="card py-2 mx-2 bg-light">
            <div class="card-body">
                <div class="row">
                    <div class="col-4">
                        <img class="card-image card-img-left" width=100 height=100 src=" ..." alt="...">
                    </div>
                    <div class="col-6">
                        <h5 class="card-title">Calorie: <span class="count">0</span></h5>
                        <p class="date">placeholder</p>
                        <p class="card-description">placeholder</p>
                    </div>
                </div>
            </div>
        </div>
    </template>

    <!-- the body of your page goes here -->
    <!-- stuff -->



    <!---------------------------------------------->
    <!-- Your own JavaScript functions go here    -->
    <!---------------------------------------------->
    <script src="./scripts/skeleton.js"></script>
    <!-- <script src="./scripts/script.js"></script> -->
    <script src="./scripts/history.js"></script>
</body>

</html>
